package com.ggk911.pharmacy_system.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ggk911.pharmacy_system.entity.DrugSale;
import com.ggk911.pharmacy_system.mapper.DrugSaleMapper;
import org.springframework.stereotype.Service;

/**
 * @author ggk-911
 * @version 1.0 2023/4/13 9:55
 */
@Service
public class DrugSaleServiceImpl extends ServiceImpl<DrugSaleMapper, DrugSale> implements IDrugSaleService {
    /**
     * pageAd
     *
     * @param page
     * @param queryWrapper
     * @param <E>
     * @return
     */
    public <E extends IPage<DrugSale>> E pageAd(E page, Wrapper<DrugSale> queryWrapper) {
        return baseMapper.selectPageAd(page, queryWrapper);
    }
}
